import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MesActivityComponent} from './mes-activity.component';

const routes: Routes = [
    {path: '', component: MesActivityComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mes-activity/add-mes-activity.module#AddMesActivityModule'},
            {path: 'list', loadChildren: './list-mes-activity/list-mes-activity.module#ListMesActivityModule'},
            {path: 'modify', loadChildren: './modify-mes-activity/modify-mes-activity.module#ModifyMesActivityModule'},
            {path: 'report', loadChildren: './report-mes-activity/report-mes-activity.module#ReportMesActivityModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MesActivityRoutingModule {
}
